package com.ruoyi.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.manage.domain.WareHouse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 满杯百香果🍎
 */
@Mapper
public interface WareHouseMapper extends BaseMapper<WareHouse> {

    List<WareHouse> getList(String username,WareHouse wareHouse);

    List<WareHouse> getListByAdmin(WareHouse wareHouse);

    List<WareHouse> getMechanismName(String username);

    List<WareHouse> getMechanismNameByAdmin();

    Integer add(WareHouse wareHouse);

    Integer del(Integer id);

    Integer getGoodsCount(Integer id);

    Integer updateEmpOfWarehouseCode(@Param("list") List<String> wareHouseCodes,@Param("code") String code);
}
